package com.isoft.demooa.service;

import com.isoft.demooa.dao.DeptMapper;
import com.isoft.demooa.entity.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptService {

    @Autowired
    private DeptMapper deptMapper;


    public List<Dept> getList(){
        return  deptMapper.selectAll();
    }
}
